﻿<UserControl x:Class="ForumsBrowser.ThreadViewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="clr-namespace:System.Windows.Documents;assembly=PresentationFramework"
             xmlns:fb="clr-namespace:ForumsBrowser"
             HorizontalAlignment="Stretch"
             x:Name="myUserControl"  ScrollViewer.VerticalScrollBarVisibility="Hidden"
             Background="Black" VerticalAlignment="Stretch">
    <UserControl.Resources>
        
    </UserControl.Resources>
        <Grid>
       
            <fb:FasterScrollingFlowDocumentScrollViewer ScrollFactor="5"  IsToolBarVisible="True" MinZoom="50" x:Name="browser" 
                                      Visibility="{Binding ElementName=myUserControl, Path=IsWebBrowser, 
                Converter={StaticResource NotBoolVis} }" Background="Black" Foreground="White" 
                                      VerticalAlignment="Stretch" MouseDoubleClick="browser_MouseDoubleClick">
            <FlowDocument>
                <FlowDocument.Background>
                    
                    <RadialGradientBrush>
                        <GradientStop Color="Gray" Offset="0"/>
                        <GradientStop Color="Black" Offset="1"/>
                    </RadialGradientBrush>
                </FlowDocument.Background>
                
                <Paragraph TextAlignment="Center" FontFamily="Microsoft Sans Serif"  >
                    <LineBreak/>
                    <LineBreak/>
                    <Run>No thread selected</Run>
                </Paragraph>
            </FlowDocument>
        </fb:FasterScrollingFlowDocumentScrollViewer>
         
        <WebBrowser x:Name="webBrowser" 
                    Visibility="{Binding ElementName=myUserControl, Path=IsWebBrowser, 
            Converter={StaticResource BoolVis} }" VerticalAlignment="Stretch" />
    </Grid>
</UserControl>
